﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace StockTrader.BusinessService.DataContract
{
    [DataContract()]
    public class OrdersPlacedData
    {
        [DataMember]
        public int LineNum { get; set; }
        [DataMember]
        public int OrderId { get; set; }
        [DataMember]
        public int Quantity { get; set; }
        [DataMember]
        public string Price { get; set; }
        [DataMember]
        public string OrderType { get; set; }

        public OrdersPlacedData() { }
        public OrdersPlacedData(int linum, int orderid, int qtty, string price, string ordertype)
        {
            OrderId = orderid;
            LineNum = linum;
            Quantity = qtty;
            Price = price;
            OrderType = ordertype;
        }
    }
}
